import xlwt

writebook = xlwt.Workbook()  # 打开excel
test = writebook.add_sheet('test')  # 添加一个名字叫test的sheet
data = [
    '1','2'
]
for i,item in enumerate(data):
    test.write(i, 0, item)

writebook.save('D:\\testdata.xls')
